<?php 

include '../function.php';

$str = "445281 1986 11 24 1888";

$str = "445281198611241888";

$str = "44528120171101188B";

$preg = "/^[1-9]\d{5}(19[0-9]{2}|20(0[0-9]|1[0-7]))(0[1-9]|1[0-2])(0[1-9]|[12][0-9]|3[01])\d{3}[0-9X]$/";

$c = preg_match($preg, $str);

// var_dump($c);
$temp=[];

for ($i=1367462; $i <1367467 ; $i++) { 
	$data = file_get_contents("https://www.lagou.com/jobs/".$i.".html");

	$preg ="/<span class=\"name\">(.*?)<\/span>.*?class=\"salary\">(.*?)<\/span>.*?<span>(.*?)<\/span>.*?<span>(.*?)<\/span>.*?<span>(.*?)<\/span>.*?<span>(.*?)<\/span>/s";


	$c = preg_match_all($preg, $data, $out);

	$temp[]=$out;
}

var_dump($temp);



// <span class="name">Hadoop</span>
//                 <div class="marEdit">
//                                     </div>
//             </div>
//             <dd class="job_request">
//                 <p>
//                     <span class="salary">9k以上 </span>
//                     <span>/南京 /</span>
//                     <span>经验应届毕业生 /</span>
//                     <span>本科及以上 /</span>
//                     <span>全职</span>
//                 </p>


// var_dump($out);















 ?>